package com.sjd.mall.domain.dto.account;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ProjectName: sjd
 * @Package: com.sjd.mall.domain.dto.account
 * @ClassName: AccountRechargeQueryResponseDTO
 * @Author: genglong
 * @Description: 账户充值记录查询响应
 * @Date: 2022/1/14 14:18
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Builder
public class AccountRechargeQueryResponseDTO {

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单类型，1-充值，2-农作物消费，3-课程消费，4-土地消费，5-农具消费，6-种子消费，7-退款
     */
    private String orderType;

    /**
     * 订单状态
     */
    private String status;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 实际充值金额
     */
    private BigDecimal actualAmount;

    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;

    /**
     * 金豆数量
     */
    private Integer goldenBeanNum;

    /**
     * 充值时间
     */
    private String rechargeTime;

    /**
     * 消费时间
     */
    private String consumeTime;

    /**
     * 退款时间
     */
    private String refoundTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
